<form id="edit-form" class="form-horizontal" role="form" data-toggle="validator" method="POST" action="">

    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Openid')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-openid" data-rule="required" class="form-control" name="row[openid]" type="text" value="{$row.openid|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Head')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-head" data-rule="required" class="form-control" name="row[head]" type="text" value="{$row.head|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Nickname')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-nickname" data-rule="required" class="form-control" name="row[nickname]" type="text" value="{$row.nickname|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Phone')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-phone" data-rule="" class="form-control" name="row[phone]" type="text" value="{$row.phone|htmlentities}">
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Sex')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="sexList" item="vo"}
                <label for="row[sex]-{$key}">
                    <input type="radio" value="{$key}" name="row[sex]" id="row[sex]-{$key}" {in name="key" value="$row.sex"}checked{/in}>{$vo}
                </label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group" hidden>
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_vip')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="isVipList" item="vo"}
                <label for="row[is_vip]-{$key}">
                    <input type="radio" value="{$key}" name="row[is_vip]" id="row[is_vip]-{$key}" {in name="key" value="$row.is_vip"}checked{/in}>{$vo}
                </label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Is_freeze')}:</label>
        <div class="col-xs-12 col-sm-8">
            <div class="radio">
                {foreach name="isFreezeList" item="vo"}
                <label for="row[is_freeze]-{$key}">
                    <input type="radio" value="{$key}" name="row[is_freeze]" id="row[is_freeze]-{$key}" {in name="key" value="$row.is_freeze"}checked{/in}>{$vo}
                </label>
                {/foreach}
            </div>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-money" data-rule="required" class="form-control" step="0.01" name="row[money]" type="number" min="0" value="{$row.money|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Expense_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-expense_money" data-rule="required" class="form-control" step="0.01" name="row[expense_money]" min="0" type="number" value="{$row.expense_money|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Recharge_money')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-recharge_money" data-rule="required" class="form-control" step="0.01" name="row[recharge_money]" type="number" value="{$row.recharge_money|htmlentities}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Ontime')}:</label>
        <div class="col-xs-12 col-sm-8">
            <input id="c-ontime" data-rule="required" class="form-control datetimepicker" data-date-format="YYYY-MM-DD HH:mm:ss" data-use-current="true" name="row[ontime]" type="text" value="{:$row.ontime?datetime($row.ontime):''}" disabled>
        </div>
    </div>
    <div class="form-group">
        <label class="control-label col-xs-12 col-sm-2">{:__('Description')}:</label>
        <div class="col-xs-12 col-sm-8">
            <textarea id="c-description" class="form-control " rows="5" name="row[description]" cols="50">{$row.description}</textarea>
        </div>
    </div>
    <div class="form-group layer-footer">
        <label class="control-label col-xs-12 col-sm-2"></label>
        <div class="col-xs-12 col-sm-8">
            <button type="submit" class="btn btn-success btn-embossed disabled">{:__('OK')}</button>
            <button type="reset" class="btn btn-default btn-embossed">{:__('Reset')}</button>
        </div>
    </div>
</form>
